package com.itheima.edu.info.test;

public class test04 {

    public static void main(String[] args) {

        /*useShowHandler(() -> {
            System.out.println("lambda表达式");
        });*/

        useShowHandler(()->{
            System.out.println("lambda表达式");

        });

    }

    public static void useShowHandler(ShowHandler showHandler) {
        showHandler.show();
    }
}


interface ShowHandler {
    void show();
}